package ua.pp.bizon.yandex.api;

import ua.pp.bizon.yandex.uploader.atom.AppLink;

import org.apache.http.Header;
import org.apache.http.HttpEntity;
import org.apache.http.HttpException;
import org.apache.http.client.HttpResponseException;

/**
 * used to get some things from server; can be cached
 * 
 * @author Bizon
 * 
 */
public interface IHTTPUtils {

	public abstract boolean remove(AppLink url) throws HttpException;

	public abstract String put(String entity, AppLink to) throws HttpException;

	public abstract String post(HttpEntity fileEntity, AppLink to, String contentType, Header[] headers) throws HttpException;

	public abstract String get(String url, String token) throws HttpResponseException;

}